home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Telnet 2.6.1d1 4⁄26⁄94 Folder / myMac #includes.c < prev    next >
Text File  |  1993-10-11  |  7KB  |  539 lines

  1.  
  2. /*
  3.  *  Mac #includes.c - source to MacHeaders
  4.  *
  5.  *  To add a header, change its "#if 0" to "#if 1".
  6.  *
  7.  *  To remove a header, change its "#if 1" to "#if 0".
  8.  *
  9.  *  There are some conflicts and order dependencies among the various
  10.  *  headers:
  11.  *
  12.  *    •    <LoMem.h> and <SysEqu.h> cannot both be included.
  13.  *
  14.  *    •    <asm.h> and <Traps.h>, if both are included, must appear
  15.  *        in that order.  If <Traps.h> is included, traps used in
  16.  *        inline assembly must appear without leading underscores.
  17.  *
  18.  *  If the "Check Pointer Types" option is disabled during the
  19.  *  precompilation process, trap definitions will be stored in
  20.  *  such a way that when a trap is called (in a source file that
  21.  *  #includes the precompiled header), pointer arguments to the
  22.  *  trap will not be matched against the types of corresponding
  23.  *  formal parameters.
  24.  *
  25.  *  This is accomplished by storing "simplified" prototypes for
  26.  *  traps, in which any argument of pointer type is stored as
  27.  *  "void *".  The result closely resembles the treatment of traps
  28.  *  in pre-5.0 versions of THINK C.
  29.  *
  30.  *  (Note that this file is written in such a way that it is immune
  31.  *  to the actual compiler setting of "Check Pointer Types".  Use
  32.  *  the "SIMPLIFY_PROTOTYPES" macro, below, to control whether full
  33.  *  prototypes are retained.)
  34.  *
  35.  *    Note that none of the foregoing applies to Symantec C++, nor to 
  36.  *    Symantec C/C++ for MPW. This file is #included by the source for
  37.  *    MacHeaders++, the precompiled header for Symantec C++. If a compiler
  38.  *    other than THINK C precompiles this file, asm.h and LoMem.h are
  39.  *    #if'd out. If an MPW-hosted compiler precompiles this file, BDC.h
  40.  *    and pascal.h are #if'd out.
  41.  *
  42.  */
  43.  
  44. #ifndef _H_MacHeaders
  45. #define _H_MacHeaders
  46.  
  47.  
  48. #ifndef __SC__
  49.  
  50. // set this to 0 (zero) to retain full prototypes
  51. // set this to 1 (one) for "simplified" prototypes
  52. #define SIMPLIFY_PROTOTYPES        0
  53.  
  54.  
  55. // prototype checking level
  56. #if SIMPLIFY_PROTOTYPES
  57.     #if !__option(check_ptrs)
  58.         #undef SIMPLIFY_PROTOTYPES
  59.     #endif
  60.     #pragma options(!check_ptrs)
  61. #else
  62.     #if __option(check_ptrs)
  63.         #undef SIMPLIFY_PROTOTYPES
  64.     #endif
  65.     #pragma options(check_ptrs)
  66. #endif
  67.  
  68. #endif
  69.  
  70.  
  71. // ADSP
  72.     #if 0
  73.         #include <ADSP.h>
  74.     #endif
  75.  
  76. // AIFF
  77.     #if 0
  78.         #include <AIFF.h>
  79.     #endif
  80.  
  81. // Aliases
  82.     #if 0
  83.         #ifdef __APPLETALK__
  84.             #include <Aliases.h>
  85.         #else
  86.             #define __APPLETALK__            // suppress unnecessary #include <AppleTalk.h>
  87.             #include <Aliases.h>
  88.             #undef __APPLETALK__
  89.         #endif
  90.     #endif
  91.  
  92. // AppleEvents
  93.     #if 0
  94.         #ifdef __EPPC__
  95.             #include <AppleEvents.h>
  96.         #else
  97.             #define __EPPC__                // suppress unnecessary #include <EPPC.h>
  98.             #include <AppleEvents.h>
  99.             #undef __EPPC__
  100.         #endif
  101.     #endif
  102.  
  103. // AppleTalk
  104.     #if 0
  105.         #include <AppleTalk.h>
  106.     #endif
  107.  
  108. // Balloons
  109.     #if 0
  110.         #ifdef __TRAPS__
  111.             #include <Balloons.h>
  112.         #else
  113.             #define __TRAPS__                // suppress unnecessary #include <Traps.h>
  114.             #define _Pack14 0xA830            // (well, mostly unnecessary...)
  115.             #include <Balloons.h>
  116.             #undef _Pack14
  117.             #undef __TRAPS__
  118.         #endif
  119.     #endif
  120.  
  121. // BDC
  122.     #if 1
  123.         #include <BDC.h>
  124.     #endif
  125.  
  126. // CommResources
  127.     #if 0
  128.         #include <CommResources.h>
  129.     #endif
  130.  
  131. // Connections
  132.     #if 0
  133.         #include <Connections.h>
  134.     #endif
  135.  
  136. // ConnectionTools
  137.     #if 0
  138.         #include <ConnectionTools.h>
  139.     #endif
  140.  
  141. // Controls
  142.     #if 1
  143.         #include <Controls.h>
  144.     #endif
  145.  
  146. // CRMSerialDevices
  147.     #if 0
  148.         #include <CRMSerialDevices.h>
  149.     #endif
  150.  
  151. // CTBUtilities
  152.     #if 0
  153.         #include <CTBUtilities.h>
  154.     #endif
  155.  
  156. // DatabaseAccess
  157.     #if 0
  158.         #include <DatabaseAccess.h>
  159.     #endif
  160.  
  161. // Desk
  162.     #if 1
  163.         #include <Desk.h>
  164.     #endif
  165.  
  166. // DeskBus
  167.     #if 0
  168.         #include <DeskBus.h>
  169.     #endif
  170.  
  171. // Devices
  172.     #if 1
  173.         #include <Devices.h>
  174.     #endif
  175.  
  176. // Dialogs
  177.     #if 1
  178.         #include <Dialogs.h>
  179.     #endif
  180.  
  181. // DiskInit
  182.     #if 1
  183.         #include <DiskInit.h>
  184.     #endif
  185.  
  186. // Disks
  187.     #if 0
  188.         #include <Disks.h>
  189.     #endif
  190.  
  191. // Editions
  192.     #if 0
  193.         #include <Editions.h>
  194.     #endif
  195.  
  196. // ENET
  197.     #if 0
  198.         #include <ENET.h>
  199.     #endif
  200.  
  201. // EPPC
  202.     #if 0
  203.         #include <EPPC.h>
  204.     #endif
  205.  
  206. // Errors
  207.     #if 1
  208.         #include <Errors.h>
  209.     #endif
  210.  
  211. // Events
  212.     #if 1
  213.         #include <Events.h>
  214.     #endif
  215.  
  216. // Files
  217.     #if 1
  218.         #include <Files.h>
  219.     #endif
  220.  
  221. // FileTransfers
  222.     #if 0
  223.         #include <FileTransfers.h>
  224.     #endif
  225.  
  226. // FileTransferTools
  227.     #if 0
  228.         #include <FileTransferTools.h>
  229.     #endif
  230.  
  231. // Finder
  232.     #if 0
  233.         #include <Finder.h>
  234.     #endif
  235.  
  236. // FixMath
  237.     #if 0
  238.         #include <FixMath.h>
  239.     #endif
  240.  
  241. // Folders
  242.     #if 0
  243.         #include <Folders.h>
  244.     #endif
  245.  
  246. // Fonts
  247.     #if 1
  248.         #include <Fonts.h>
  249.     #endif
  250.  
  251. // GestaltEqu
  252.     #if 0
  253.         #include <GestaltEqu.h>
  254.     #endif
  255.  
  256. // Graf3D
  257.     #if 0
  258.         #include <Graf3D.h>
  259.     #endif
  260.  
  261. // HyperXCmd
  262.     #if 0
  263.         #include <HyperXCmd.h>
  264.     #endif
  265.  
  266. // Icons
  267.     #if 0
  268.         #include <Icons.h>
  269.     #endif
  270.  
  271. // Language
  272.     #if 0
  273.         #include <Language.h>
  274.     #endif
  275.  
  276. // Lists
  277.     #if 1
  278.         #include <Lists.h>
  279.     #endif
  280.  
  281. // Memory
  282.     #if 1
  283.         #include <Memory.h>
  284.     #endif
  285.  
  286. // Menus
  287.     #if 1
  288.         #include <Menus.h>
  289.     #endif
  290.  
  291. // MIDI
  292.     #if 0
  293.         #include <MIDI.h>
  294.     #endif
  295.  
  296. // Notification
  297.     #if 1
  298.         #include <Notification.h>
  299.     #endif
  300.  
  301. // OSEvents
  302.     #if 1
  303.         #include <OSEvents.h>
  304.     #endif
  305.  
  306. // OSUtils
  307.     #if 1
  308.         #include <OSUtils.h>
  309.     #endif
  310.  
  311. // Packages
  312.     #if 0
  313.         #include <Packages.h>
  314.     #endif
  315.  
  316. // Palette
  317.     #if 0
  318.         #include <Palette.h>
  319.     #endif
  320.  
  321. // Palettes
  322.     #if 0
  323.         #include <Palettes.h>
  324.     #endif
  325.  
  326. // Picker
  327.     #if 0
  328.         #include <Picker.h>
  329.     #endif
  330.  
  331. // PictUtil
  332.     #if 0
  333.         #include <PictUtil.h>
  334.     #endif
  335.  
  336. // Power
  337.     #if 0
  338.         #include <Power.h>
  339.     #endif
  340.  
  341. // PPCToolBox
  342.     #if 0
  343.         #include <PPCToolBox.h>
  344.     #endif
  345.  
  346. // Printing
  347.     #if 0
  348.         #include <Printing.h>
  349.     #endif
  350.  
  351. // PrintTraps
  352.     #if 1
  353.         #include <PrintTraps.h>
  354.     #endif
  355.  
  356. // Processes
  357.     #if 0
  358.         #include <Processes.h>
  359.     #endif
  360.  
  361. // QDOffscreen
  362.     #if 0
  363.         #include <QDOffscreen.h>
  364.     #endif
  365.  
  366. // Quickdraw
  367.     #if 1
  368.         #include <Quickdraw.h>
  369.     #endif
  370.  
  371. // Resources
  372.     #if 1
  373.         #include <Resources.h>
  374.     #endif
  375.  
  376. // Retrace
  377.     #if 0
  378.         #include <Retrace.h>
  379.     #endif
  380.  
  381. // ROMDefs
  382.     #if 0
  383.         #include <ROMDefs.h>
  384.     #endif
  385.  
  386. // SANE
  387.     #if 0
  388.         #include <SANE.h>
  389.     #endif
  390.  
  391. // Scrap
  392.     #if 1
  393.         #include <Scrap.h>
  394.     #endif
  395.  
  396. // Script
  397.     #if 0
  398.         #include <Script.h>
  399.     #endif
  400.  
  401. // SCSI
  402.     #if 0
  403.         #include <SCSI.h>
  404.     #endif
  405.  
  406. // SegLoad
  407.     #if 1
  408.         #include <SegLoad.h>
  409.     #endif
  410.  
  411. // Serial
  412.     #if 0
  413.         #include <Serial.h>
  414.     #endif
  415.  
  416. // ShutDown
  417.     #if 0
  418.         #include <ShutDown.h>
  419.     #endif
  420.  
  421. // Slots
  422.     #if 0
  423.         #include <Slots.h>
  424.     #endif
  425.  
  426. // Sound
  427.     #if 0
  428.         #include <Sound.h>
  429.     #endif
  430.  
  431. // SoundInput
  432.     #if 0
  433.         #include <SoundInput.h>
  434.     #endif
  435.  
  436. // StandardFile
  437.     #if 1
  438.         #include <StandardFile.h>
  439.     #endif
  440.  
  441. // Start
  442.     #if 0
  443.         #include <Start.h>
  444.     #endif
  445.  
  446. // SysEqu
  447.     #if 0
  448.         #include <SysEqu.h>
  449.     #endif
  450.  
  451. // Terminals
  452.     #if 0
  453.         #include <Terminals.h>
  454.     #endif
  455.  
  456. // TerminalTools
  457.     #if 0
  458.         #include <TerminalTools.h>
  459.     #endif
  460.  
  461. // TextEdit
  462.     #if 1
  463.         #include <TextEdit.h>
  464.     #endif
  465.  
  466. // Timer
  467.     #if 1
  468.         #include <Timer.h>
  469.     #endif
  470.  
  471. // ToolUtils
  472.     #if 1
  473.         #include <ToolUtils.h>
  474.     #endif
  475.  
  476. // Types
  477.     #if 1
  478.         #include <Types.h>
  479.     #endif
  480.  
  481. // Values
  482.     #if 0
  483.         #include <Values.h>
  484.     #endif
  485.  
  486. // Video
  487.     #if 0
  488.         #include <Video.h>
  489.     #endif
  490.  
  491. // Windows
  492.     #if 1
  493.         #include <Windows.h>
  494.     #endif
  495.  
  496. // pascal.h
  497.     #if 1
  498.         #include <pascal.h>
  499.     #endif
  500.  
  501. // asm.h
  502. #ifdef THINK_C
  503.     #if 1
  504.         #include <asm.h>
  505.     #endif
  506. #else
  507.     #if 0
  508.         #include <asm.h>
  509.     #endif
  510. #endif
  511.  
  512. // LoMem
  513.     #if 0 && !defined(__cplusplus)
  514.         #include <LoMem.h>
  515.     #endif
  516.  
  517. // THINK
  518.     #if 1
  519.         #include <THINK.h>
  520.     #endif
  521.  
  522. // Traps
  523.     #if 0
  524.         #include <Traps.h>
  525.     #endif
  526.  
  527.  
  528. #ifndef __SC__
  529.  
  530. // restore "Check Pointer Types" to previous setting
  531. #if SIMPLIFY_PROTOTYPES
  532.     #pragma options(check_ptrs)
  533. #elif defined(SIMPLIFY_PROTOTYPES)
  534.     #pragma options(!check_ptrs)
  535. #endif
  536. #undef SIMPLIFY_PROTOTYPES
  537.  
  538. #endif
  539. #endif